﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005F3 RID: 1523
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class FriendSimpleInfo : IMessage<FriendSimpleInfo>, IMessage, IEquatable<FriendSimpleInfo>, IDeepCloneable<FriendSimpleInfo>, IBufferMessage
	{
		// Token: 0x1700138D RID: 5005
		// (get) Token: 0x0600447F RID: 17535 RVA: 0x000BB6C3 File Offset: 0x000B98C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<FriendSimpleInfo> Parser
		{
			get
			{
				return FriendSimpleInfo._parser;
			}
		}

		// Token: 0x1700138E RID: 5006
		// (get) Token: 0x06004480 RID: 17536 RVA: 0x000BB6CA File Offset: 0x000B98CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return FriendSimpleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700138F RID: 5007
		// (get) Token: 0x06004481 RID: 17537 RVA: 0x000BB6DC File Offset: 0x000B98DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return FriendSimpleInfo.Descriptor;
			}
		}

		// Token: 0x06004482 RID: 17538 RVA: 0x000BB6E3 File Offset: 0x000B98E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendSimpleInfo()
		{
		}

		// Token: 0x06004483 RID: 17539 RVA: 0x000BB6F8 File Offset: 0x000B98F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendSimpleInfo(FriendSimpleInfo other) : this()
		{
			this.playingState_ = other.playingState_;
			this.createTime_ = other.createTime_;
			this.isMarked_ = other.isMarked_;
			this.remarkName_ = other.remarkName_;
			this.gPLMHJMKLML_ = ((other.gPLMHJMKLML_ != null) ? other.gPLMHJMKLML_.Clone() : null);
			this.playerInfo_ = ((other.playerInfo_ != null) ? other.playerInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004484 RID: 17540 RVA: 0x000BB784 File Offset: 0x000B9984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public FriendSimpleInfo Clone()
		{
			return new FriendSimpleInfo(this);
		}

		// Token: 0x17001390 RID: 5008
		// (get) Token: 0x06004485 RID: 17541 RVA: 0x000BB78C File Offset: 0x000B998C
		// (set) Token: 0x06004486 RID: 17542 RVA: 0x000BB794 File Offset: 0x000B9994
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayingState PlayingState
		{
			get
			{
				return this.playingState_;
			}
			set
			{
				this.playingState_ = value;
			}
		}

		// Token: 0x17001391 RID: 5009
		// (get) Token: 0x06004487 RID: 17543 RVA: 0x000BB79D File Offset: 0x000B999D
		// (set) Token: 0x06004488 RID: 17544 RVA: 0x000BB7A5 File Offset: 0x000B99A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public long CreateTime
		{
			get
			{
				return this.createTime_;
			}
			set
			{
				this.createTime_ = value;
			}
		}

		// Token: 0x17001392 RID: 5010
		// (get) Token: 0x06004489 RID: 17545 RVA: 0x000BB7AE File Offset: 0x000B99AE
		// (set) Token: 0x0600448A RID: 17546 RVA: 0x000BB7B6 File Offset: 0x000B99B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsMarked
		{
			get
			{
				return this.isMarked_;
			}
			set
			{
				this.isMarked_ = value;
			}
		}

		// Token: 0x17001393 RID: 5011
		// (get) Token: 0x0600448B RID: 17547 RVA: 0x000BB7BF File Offset: 0x000B99BF
		// (set) Token: 0x0600448C RID: 17548 RVA: 0x000BB7C7 File Offset: 0x000B99C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string RemarkName
		{
			get
			{
				return this.remarkName_;
			}
			set
			{
				this.remarkName_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17001394 RID: 5012
		// (get) Token: 0x0600448D RID: 17549 RVA: 0x000BB7DA File Offset: 0x000B99DA
		// (set) Token: 0x0600448E RID: 17550 RVA: 0x000BB7E2 File Offset: 0x000B99E2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OKDHFHCGGLD GPLMHJMKLML
		{
			get
			{
				return this.gPLMHJMKLML_;
			}
			set
			{
				this.gPLMHJMKLML_ = value;
			}
		}

		// Token: 0x17001395 RID: 5013
		// (get) Token: 0x0600448F RID: 17551 RVA: 0x000BB7EB File Offset: 0x000B99EB
		// (set) Token: 0x06004490 RID: 17552 RVA: 0x000BB7F3 File Offset: 0x000B99F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerSimpleInfo PlayerInfo
		{
			get
			{
				return this.playerInfo_;
			}
			set
			{
				this.playerInfo_ = value;
			}
		}

		// Token: 0x06004491 RID: 17553 RVA: 0x000BB7FC File Offset: 0x000B99FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as FriendSimpleInfo);
		}

		// Token: 0x06004492 RID: 17554 RVA: 0x000BB80C File Offset: 0x000B9A0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(FriendSimpleInfo other)
		{
			return other != null && (other == this || (this.PlayingState == other.PlayingState && this.CreateTime == other.CreateTime && this.IsMarked == other.IsMarked && !(this.RemarkName != other.RemarkName) && object.Equals(this.GPLMHJMKLML, other.GPLMHJMKLML) && object.Equals(this.PlayerInfo, other.PlayerInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004493 RID: 17555 RVA: 0x000BB8A4 File Offset: 0x000B9AA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PlayingState != PlayingState.None)
			{
				num ^= this.PlayingState.GetHashCode();
			}
			if (this.CreateTime != 0L)
			{
				num ^= this.CreateTime.GetHashCode();
			}
			if (this.IsMarked)
			{
				num ^= this.IsMarked.GetHashCode();
			}
			if (this.RemarkName.Length != 0)
			{
				num ^= this.RemarkName.GetHashCode();
			}
			if (this.gPLMHJMKLML_ != null)
			{
				num ^= this.GPLMHJMKLML.GetHashCode();
			}
			if (this.playerInfo_ != null)
			{
				num ^= this.PlayerInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004494 RID: 17556 RVA: 0x000BB962 File Offset: 0x000B9B62
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004495 RID: 17557 RVA: 0x000BB96A File Offset: 0x000B9B6A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004496 RID: 17558 RVA: 0x000BB974 File Offset: 0x000B9B74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.gPLMHJMKLML_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.GPLMHJMKLML);
			}
			if (this.playerInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.PlayerInfo);
			}
			if (this.CreateTime != 0L)
			{
				output.WriteRawTag(40);
				output.WriteInt64(this.CreateTime);
			}
			if (this.IsMarked)
			{
				output.WriteRawTag(56);
				output.WriteBool(this.IsMarked);
			}
			if (this.PlayingState != PlayingState.None)
			{
				output.WriteRawTag(64);
				output.WriteEnum((int)this.PlayingState);
			}
			if (this.RemarkName.Length != 0)
			{
				output.WriteRawTag(74);
				output.WriteString(this.RemarkName);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004497 RID: 17559 RVA: 0x000BBA44 File Offset: 0x000B9C44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PlayingState != PlayingState.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.PlayingState);
			}
			if (this.CreateTime != 0L)
			{
				num += 1 + CodedOutputStream.ComputeInt64Size(this.CreateTime);
			}
			if (this.IsMarked)
			{
				num += 2;
			}
			if (this.RemarkName.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.RemarkName);
			}
			if (this.gPLMHJMKLML_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.GPLMHJMKLML);
			}
			if (this.playerInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.PlayerInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004498 RID: 17560 RVA: 0x000BBAF4 File Offset: 0x000B9CF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(FriendSimpleInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PlayingState != PlayingState.None)
			{
				this.PlayingState = other.PlayingState;
			}
			if (other.CreateTime != 0L)
			{
				this.CreateTime = other.CreateTime;
			}
			if (other.IsMarked)
			{
				this.IsMarked = other.IsMarked;
			}
			if (other.RemarkName.Length != 0)
			{
				this.RemarkName = other.RemarkName;
			}
			if (other.gPLMHJMKLML_ != null)
			{
				if (this.gPLMHJMKLML_ == null)
				{
					this.GPLMHJMKLML = new OKDHFHCGGLD();
				}
				this.GPLMHJMKLML.MergeFrom(other.GPLMHJMKLML);
			}
			if (other.playerInfo_ != null)
			{
				if (this.playerInfo_ == null)
				{
					this.PlayerInfo = new PlayerSimpleInfo();
				}
				this.PlayerInfo.MergeFrom(other.PlayerInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004499 RID: 17561 RVA: 0x000BBBC9 File Offset: 0x000B9DC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600449A RID: 17562 RVA: 0x000BBBD4 File Offset: 0x000B9DD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 10U)
					{
						if (this.gPLMHJMKLML_ == null)
						{
							this.GPLMHJMKLML = new OKDHFHCGGLD();
						}
						input.ReadMessage(this.GPLMHJMKLML);
						continue;
					}
					if (num == 18U)
					{
						if (this.playerInfo_ == null)
						{
							this.PlayerInfo = new PlayerSimpleInfo();
						}
						input.ReadMessage(this.PlayerInfo);
						continue;
					}
					if (num == 40U)
					{
						this.CreateTime = input.ReadInt64();
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.IsMarked = input.ReadBool();
						continue;
					}
					if (num == 64U)
					{
						this.PlayingState = (PlayingState)input.ReadEnum();
						continue;
					}
					if (num == 74U)
					{
						this.RemarkName = input.ReadString();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001AFE RID: 6910
		private static readonly MessageParser<FriendSimpleInfo> _parser = new MessageParser<FriendSimpleInfo>(() => new FriendSimpleInfo());

		// Token: 0x04001AFF RID: 6911
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001B00 RID: 6912
		public const int PlayingStateFieldNumber = 8;

		// Token: 0x04001B01 RID: 6913
		private PlayingState playingState_;

		// Token: 0x04001B02 RID: 6914
		public const int CreateTimeFieldNumber = 5;

		// Token: 0x04001B03 RID: 6915
		private long createTime_;

		// Token: 0x04001B04 RID: 6916
		public const int IsMarkedFieldNumber = 7;

		// Token: 0x04001B05 RID: 6917
		private bool isMarked_;

		// Token: 0x04001B06 RID: 6918
		public const int RemarkNameFieldNumber = 9;

		// Token: 0x04001B07 RID: 6919
		private string remarkName_ = "";

		// Token: 0x04001B08 RID: 6920
		public const int GPLMHJMKLMLFieldNumber = 1;

		// Token: 0x04001B09 RID: 6921
		private OKDHFHCGGLD gPLMHJMKLML_;

		// Token: 0x04001B0A RID: 6922
		public const int PlayerInfoFieldNumber = 2;

		// Token: 0x04001B0B RID: 6923
		private PlayerSimpleInfo playerInfo_;
	}
}
